<template>
  <div class="timeline-infos">
    <div v-for="(item) in datas" :key="item" class="timeline-item" @click="$emit('itemClick',item)">
      <div class="circle" :class="item.level" />
      <!-- <div class="tri" :class="item.level" /> -->
      <div class="info" :class="item.level">
        {{ item.text }}
      </div>
    </div>
    <div class="line" />
  </div>
</template>

<script setup>
// eslint-disable-next-line no-undef
defineProps({
  datas: {
    type: Array,
    default: () => [],
  },
});

defineEmits(['itemClick'])
</script>

<style lang="less" scoped>
@import "./index.less";
</style>
